<?php
class connetMysql
{
	private $mysql_server="localhost";
 	private $mysql_username="root";
 	private $mysql_password="";
 	private $mysql_database_name="xinwenfabu";
	var $con;
	public function getConnect()
	{
		$this->con = mysqli_connect( $this->mysql_server,$this->mysql_username,"",$this->mysql_database_name);
		if (!$this->con)
  		{
  			//echo "aa3";
  			die('Could not connect: ' . mysql_error());
 		 }
		 mysqli_query($this->con,"SET names utf8");
		return $this->con;
	}
	public function clossConnet()
	{
		mysqli_close($this->con);
	}
	

}

?>
